package com.xxh.dataaccess.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

import lombok.Data;

/**
 * (VideoLike)表实体类
 *
 * @author makejava
 * @since 2021-02-12 16:08:33
 */
@SuppressWarnings("serial")
@Data
public class VideoLike extends Model<VideoLike> {

    @TableId(type= IdType.AUTO)
    private Integer id;
    //视频ID
    private String videoId;
    //点赞用户
    private Integer likeUser;
    //点赞时间
    private Date likeTime;
    //1有效赞，0取消赞
    private Integer status;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getVideoId() {
        return videoId;
    }

    public void setVideoId(String videoId) {
        this.videoId = videoId;
    }

    public Integer getLikeUser() {
        return likeUser;
    }

    public void setLikeUser(Integer likeUser) {
        this.likeUser = likeUser;
    }

    public Date getLikeTime() {
        return likeTime;
    }

    public void setLikeTime(Date likeTime) {
        this.likeTime = likeTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
